'use strict';

import { compose, createStore, applyMiddleware } from 'redux';
import thunk from 'redux-thunk';
import rootReducer from '../reducer/index';

export default function configureStore(initialState) {
	let buildstore = compose(applyMiddleware(thunk))(createStore);
	return buildstore(rootReducer, initialState);
}